bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t
authorAlec Brown <alec.r.brown@oracle.com>
Tue, 4 Feb 2025 15:11:10 +0000 (15:11 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Thu, 3 Jul 2025 16:35:51 +0000 (18:35 +0200)
commita2a86381e7610e6dcd40ab469a1557383ab6e817
treebe892a5dde9cee8a3cb3becf9ddef1725502825a
parentc0c53472c43b61719833a456ef9e9928027989ed
bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t

The Coverity indicates that GRUB_EHCI_TOGGLE is an int that contains
a negative value and we are using it for the variable token which is
grub_uint32_t. To remedy this we can cast the definition to grub_uint32_t.

Fixes: CID 473851
Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name bus-usb-ehci-Define-GRUB_EHCI_TOGGLE-as-grub_uint32_t.patch
grub-core/bus/usb/ehci.c